#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void exchange_array(int arr1[], int arr2[], int sz)
{
	int temp = 0;
	int j = 0;
	for (j = 0; j < sz; j++)
	{
		temp = arr1[j];
		arr1[j] = arr2[j];
		arr2[j] = temp;
	}
}
int main()
{
	int arr1[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int arr2[10] = { 2,3,5,6,7,8,2,4,8,34 };
	int sz = sizeof(arr1) / sizeof(arr1[0]);
	exchange_array(arr1, arr2,sz);
	int i = 0;
	printf("arr1 = ");
	for (i = 0; i < 10; i++)
	{
		printf("%d ", arr1[i]);
	}
	printf("\narr2 = ");
	for (i = 0; i < 10; i++)
	{
		printf("%d ", arr2[i]);
	}
	return 0;
}